import yagmail
import logging
def log_in():
    logging.basicConfig(level=logging.DEBUG,format='%(name)s_%(levelno)s_%(message)s',handlers=[
        logging.StreamHandler(),
        logging.FileHandler('log.txt')
    ])

def send_loc(a):
    mali=yagmail.SMTP(user='3192933068@qq.com',password='sxajwqyvomtpdfch',host='smtp.qq.com')
    mali.send(to='3192933068@qq.com',subject='报告',contents='报告内容',attachments=a)